package com.wnx.job.common.mapstruct;


import com.wnx.job.modules.rms.dto.TrainParam;
import com.wnx.job.modules.rms.model.RmsTrain;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author by wangnaixing
 * @Description
 * @Date 2021/12/17 14:19
 */
@Mapper
public interface TrainMapper {

    TrainMapper INSTANCE = Mappers.getMapper(TrainMapper.class);

    TrainParam toDto(RmsTrain train);
    RmsTrain toPojo(TrainParam trainParam);
}
